package com.tm.enums;

/**
 * @author wangSang
 * @create 2022-09-25 20:01
 */
public enum ResultEnum {
    SUCCESS(200,"操作成功滴长"),
    QUIT_SUCCESS(200,"退出成功"),
    SUCCESS_DELETE(200,"删除成功滴长"),
    SUCCESS_INSERT(200,"新增成功滴长"),
    SUCCESS_QUERY(200,"查询成功滴长"),
    SUCCESS_PUT(200,"修改成功滴长"),
    SUCCESS_LOGON(200,"登录成功"),
    SENDSMS_SUCCESS(200,"短信已发送请注意查收"),
    ERROR(201,"操作失败滴长"),
    QUERY_ERROR(202,"查询异常"),
    ADD_ERROR(203,"数据异常"),
    UPLOADIND_ERROR(204,"图片上传异常"),
    SENDSMS_ERROR(205,"验证码错误"),
    LOGON_ERROR(206,"登录失败，密码或账号错误"),
    OVERDUE_ERROR(207,"验证码过期"),
    NETWORK_ERROR(208,"网络故障"),
    ERROR_DELETEPOWER(209,"删除失败滴长,下面有子节点导致无法删除"),
    ERROR_DELETEEXISTS(209,"删除失败滴长,角色真正使用导致无法删除"),
    ERROR_INSERTPOWER(210,"新增失败滴长，权限名称重复"),
    ERROR_QUERYPOWER(211,"查询成功滴长"),
    ERROR_PUTPOWER(213,"修改失败滴长，无法修改到自己的子节点下面"),
    ERROR_PUTNAME(214,"修改失败滴长，名称已存在"),
    ERROR_PUTUSER(215,"修改失败滴长,手机号已经存在或用户名已存在"),
    ERROR_INSERTROLE(210,"新增失败滴长，角色名称重复"),
    ERROR_NOTPOWER(210,"无法访问，权限不足"),
    ERROR_LOGON(217,"请填写账户和密码或手机号短信"),
    ERROR_REGISTER(216,"手机号已注册"),
    SUCCESS_REGISTER(200,"注册成功"),
    ERROR_ORDERVIP(208,"订单重复"),

    ERROR_TIME(209,"订单已过期"),
    ERROR_NULL(208,"订单不存在"),
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
